initial directory check