adds 'max-depth' support, should be handy checking directives