making compatible with spree 2.0