added support for recursion levels-- v0.0.7