changed mdir to local