finished bokbase script