updates for windows compatbility