make allow-recursion configurable