updated for spree 1.3.2