separated files into setup and config, adding login()