clean and refact code
add config file for josso