gateway: add interface to get the gateway costs