broke out private get path function