prepping for windows

also fixed a bug replotting mask