added directives and templates woohoo.