attempt to fix mpas_write