updated xml script
email functionality added
set up things to see server response