refactor step 1
fix handler wrap
move server.py out
fetch a package
fetch a package
fix logout message
complete refactor
fix log
merge from #refactor