refactoring wfs parsing; throw errors into domains