closes #29 handle outputCollection