updated algorithm to new metanome interfaces