logging and indexes