work-in-progress for Windows support