attempt to make it work in cygwin