removed old path function. It was replaced with a function which is more suited to the file format two commits ago