fixed new programme bug for real this time, started work on fancy index stuff