log only errors to stderr
changed error logging
dump messages which can't be parsed to stderr