added add_fields and add_pronamic_gateways functions