added code to read in mock