no-sdl version for testing