Gateway impl