add recurse option
check for recursion option