fix all the collection.config to work correctly with spawnConnection