add wait for email method