implements message query basic