fix error with ajax requests, where no head is sent and those transformations should not apply anyways
use list of groups to iterate over and need() each one. allows extending in other packages, since the groups are imported quite late