changes to accomodate new versions of pknots etc.