check for self as parent and disallow. fixes #29