optimize configuration