fixind find order of args and use maxdepth instead of depth