update demo, port for Windows