now takes multiple graftM outputs