functions to test ui thread vs HardWorker thread