add getfunc for cflow