#3475 ensure globals are outside of ready, formatting