first draft wihout routing logic and box modules