refactor into yeoman template style