allow the replacement of non-serializable objects.