clean up code, put evented back for optional use. Template startup returns deferred or you can listen to the emit events.