print out error messages to stderr