force allocation in main thread