added try/except so it works also without username/passowrd