add flag to order, leetle fixes