Unfinished windows stuff
almost working