updating keymanager