fixed small bug: was using wrong path for files