centralized globals handling