now using micro templating
more restructuring
updated example app