refactor to get the getstreaker code into main.js