fixing path cleanup