added weakref option
1.0.12