adding support to ssl, username and password