added tweak for new app config format
built out a better version of formToJSON