moved expand config to tasks.