chromecastTech rewritten