add class method orderTypes and fix POD nits