trying to make things simpler and allow decoding of annotated objects