sligh enhancements for duplicate queries