add resolve callback