wrap non-async libraries api sketch