removing unneeded WeakReference, it can be given as an argment to the using method.
a possible fix for issue #171
a small optimization
a possible fix for issue #172