completed set up structure of datapath; TODO: connect ports