change warning message to stderr