fixed ostringstream formatting (again)
unified logging
unified logging