add error message
re-work mod_attribute_to_elemenmt to use config section instead of building and parsing a json object
small fixups - tested and working