flagged evaluation code. added a function, that allows downloading a json file for the evaluation results