The equivariant index and twisted operators and genera I