moved State.fn[] in the _gl creation code section