script for updating config file