fixed touchfiles logic