make file handler global