added additional logging for failed serializtion