cleaned up SDL initialization