moved result collector up to abstract command