refactored soap_serv and started to tidy up error reporting