working on mirroring passed directory