updated to match newest version of ews