final commits for the night

update function fixed
should only work on windows