now working - xml parameters , closeEverything