improved the map loading system