backend backbone and some index stuff