eliminate quotes in error messages, refactor stuff to util package