fix some bugs
add repository config