prevent opendir