(wip) translating order to contract