add refresh function and metric list, fixed fullfile error