rewrited as repodiff tool