Trying to do it more compatible with windows platform