mask writes to CASA
Reworked object structure.