removed old files, fixed loggin and indexing