basic engine functionality, templates added