Fixed parseFile use filepath instead of filename