run in main thread flag