add rough support of multiple-output derivations