chak
committed
on 11 Jul 02
some query porting, and bug fixes to support it