support templates

adding support for templates (not working)
embed startup options in project file.