contains only some minor changes for providing more sensible logging
messages when writing to standard error