fixed for non-win platforms