added gateway param