implement mapping file parser