Methods for using in external gateways This methods could be used for both internal and external gateways