add registry
add Config
made some changes