fixed lack of gateway in POST, and rebuild