replaced nslog with ddlog