some updates in undomanager