indexing: 1. small progess on running locals.imp with indexing
2. (minor) formatting code