added weakref option
1.0.11