fix and use new do_pending implementation