only need to run check_path is directory isnt a directory