make compatible with Spree 1.1+