allow wait_for to take in all supported selector, fixes issue #48