added sleep for serialization