psi nested groups: some optimizations