use generic splitPath method