check directories