add log config option
very minor variable declaration changes