magically puts files in their right place.