generated mask--segfaults?