change to ensure files are copied into the correct dir