adding new feature if server requires credentials just pass username, password and host in constructor