api classes

needed classes for serialization