updated documentation in resolve callback is optional