make indexing of p2sh types optional