clean up leftover from previous refactoring
mark all file-scope symbols as static