update lock file
sure metrics are nil if error processing them