works on windows, somewhat (fails silently)