added revert functionality to repo