fixing ~ replacement for MSwindows
update changes