added dircheck