cleaned up some of the functions. we are now getting the correct error-name back from parse_data.