gateway client working