cleanup of config