moved warning from stdout to stderr