track waiting state as well as blocked.