remove Titan legacy classes, fix index impl