make it run on windows
prepared for adding new optimization code
planning / notes
new optimization codem WIP