Spree compatible

update refinery to be compatible with spree.