migrated update_config func to utils.py
cleanup
moved cleanup to own function