new log.waitfor with example!