remove write-host "debug" line