optimize readonly
update configs