template https://socha-blog.com/flexclip/template/