i think i'll make a separate thread for the map.