more object serialization, automatic training and checking of data