moved to src/directives and templates