pathprinting on multiple platforms