optimizing config