set up checking isdir step