output to stderr
fix warnings