using a more intelligent wait for