logs are sent to stderr instead of stdout