main-thread only allocates but not processes queries