Pathomx library functions (moving here for independence from the app while working to merge into other public packages)