remove a lot of warnings (more todo in demos and serialization code)