config file, and cmd line arguments added