use async version of resolve