indexes and cleanup