updated directoryManip