updated for working on ews