minimal bw decode function
can only handle one order atm