updates to pyglet port