adapt to the new version of the polysoup library