main and home controller, routing init