sdl wrapper + workaround