fixed map annotation swapping bug and put json calls on a separate thread