support windows on some level
more windows improvements