todo update and moved cap_stderr to smbclient method