refactored driver logging