reading app_dir from the conf file instead of param_dict
fixed pi_mc run method