flatten metrics and scores output