properly handles carving on windows