cut it down to just getting metric and save to file