add important stuff to globals