remove some of the debug logging. add an os check for now to work around old versions that won't upgrade