added support for username/password authentication