add authentication and change the config file