implemented WAITFORDR