orders: converted to use yield to fetch orders