try to improve compatibility with windows