improved logging
validate config