made coro work with promises