another refactor for global variables, bugfixes for logging tab initialization in strict mode