added first working 1d/2d pipe loading code