fixing mistakes in copying files around.