make this work better, trim names and better path