reduce writings to config file