avoid possible context problem with onWaiting