pre-flight, added auto_mask