change to make main thread merging stay synchronous