trying check_same_thread fix