connection made simple, cleaned up index