changed dlog to nslog