optimize configs