fix assets, template, route, and macros