added globalconfig function, needs testing
forgot a word
missed a .