use wait_for from common