create the sandbox in the main thread