added a new option set_readonly_scalars