add support for otype parameter in read_order(s) API functions