Moved parsePath to a public parse method