properly namespacing objects in templates