move gateway_instance helper method of synchronizer to the bottom :cat: