file parser and evaluation metrics