login() added to ease scripting use of library