fprintf to print error to stderr