added empty vehicle class and fixed serialization