made readonly fields readonly for #233