refacto service
add config