additional cp fixes to support global defined errlog