use xml file as configuration file instead of input every parameters