splitted config into general and intern to circumvent borrowing problems