replaced ugly fillOffer flag with order type