improve repository and revwalk