some cleanup, write to an hbs file of the same name