more work on gl wrapper.