update to logging and registering global variables to driver