add new keepalive code to the opengl capture as well