more fixes for winrm