loopy controllers, templates, and states