updated msearch to support raw query