follow pyseg_base changes