- optimize config code