switch to use standard pth lib.