     opts.builder = @builder
 
     @pending.push tag = new @builder.Tag name, attrs, null, opts
-
-    tag.up = (opts = {}) => # set parent
-        opts.end ?= true
-        tag.end.apply tag, arguments if opts.end
-        this
+    tag.parent = this
 
     tag.on 'data', events.data = (data) =>
         if @pending[0] is tag

        @builder = opts.builder #or new Builder # inheritence
        @buffer = [] # after this tag all children emitted data
        @pending = [] # no open child tag
        @closed = false
        @writable = true
        @isempty = yes

        @emit 'data', prettify this, "#{content}" if content
        true

    up: (opts = {}) =>
        opts.end ?= true
        @end arguments... if opts.end
        @parent

    end: () =>
        if not @closed or @closed is 'pending'
