split into seperate files, makefile run-win works now