outsourced duplicate functions in class genfooutils