change the naming on the xml created. also errors was passed wrong