added "self" key to template default namespace