add directory check