make main thread more responsive