change makeClient method to add the ability to pass authentification username and password in params array