bug628796: made considerable improvements with regard to logging, especially