add Windows support for pathname
improve messages
update messages