commonly used resolve functions moved to the gateway module.