added framework for createTemplate