cleaning up SDL stuff