Adds config and copyconfig