making dblogger more robust...