create gateway protocol inteface and client object