using await instead of promises in delay and now methods