compatible with spree >= 2.1