more globals
adding logging