moved funcs-gen