more dynamic method invocations and object referring in templates, also a bit commenting