change leader map, add commit and uncommit plugin