fix needle serialization