running file fixup, adding functions