proper sdl usage, finally :D