update rep backage
refactor file upload function name
fix bugs
add tests
add log