add query methods and constants