remove file globals and add file Helper.