change page_fh from glob to var