fix duplicated log
add loadRepo method