implemented new hashing and join methods for basis, touch-ups elsewhere