proto -> index