improve compatibility with windows