improve mad file search for EM patients