promote some functions from ug to generate