add file and cghub funcs