directory ccd should be empty first