move maxdepth arg to proper place