move gl_ stuff around