delete depracated function, fix invoke to to pklib.common.assert