added prepend, after, before
added minimum feature of saving portal tree