simplified error outputting for debugging