rewrote windows app