removing old keys from config