 				return rel
 			else
 				return render.entity(entity[rel_name]())
-	})
 
-	(()->
+	do () ->
 		key = {}
 
 		lock = (entity) ->

			when 4 then find.property(root, theme, entity, property)
			when 5 then find.view(root, theme, entity, property, view)

	_.extend(find, {
		root: (root = settings.paths.root) ->
			_root = template.children("#" + root)
			if _root.length isnt 1

				e = r_e(entity, view)
				unlock(entity)
			return e

	init = (options) ->
		_clear()
		_.extend(true, settings, options)
		loadTemplates(settings.templates).promise()

	JEFRi.Binding =
		init: init
		templates: () -> template
		loadTemplates: loadTemplates
		settings: settings
		find: find
		render: render