reading from mapping file