make windows implementation work