first separation of concerns with config and code2 and index2