finished most of the map uploading logic