shorten config code