add demo, fix window export