handle escape in analysemask