broke  out logging to separate function
logging metric scores now too