refactor function name
fix import + code
add config
add new decode