directory check fix's