added rdirs (recursive directories)