add quota stuff and update index templates