first version of gateway