added optional unbounded hierarchy

please note the commit message

I would greatly appreciate a thorough review, particularly regarding the behavior from an end-user's perspective