[plambda] extremely hacky index magic