replace config file and add logout