added logging to index controller command