updated so copy dirs work with tests