add gateway proxy mode