Add warning for failed serialization
remove debug