updated to use new pyb.Accel() object