fix for windows compatibility