this branch is merge bulk-leasequery from T.Mruglaski and Hernan Martinez's code working on VS 2013