add local definition for CDIR