change warning to stderr