write annotations for the serializer in a really simplified form to deal with #19