added option to make outgoing XML files