print to stderr instead of exception