make sure path at the end is correct