closes #9 allow nesting