adding repo updator and refactoring