add logging for config file
write the config file when settings apply