much the same code, with obj store plugged in