fixed bad json, added gateway codes to config