wrap the connection mapper in performBlockAndWait to fix multithreading issues