fix webservice config
service: better error handling, return JSON for all errors