fixed broken api call (startAndWait method was removed)