move global vars to other file