Make sure all functions are static. Added protoype parsePath