edits to index_alt and for lwrps