switched browser to headless phantomjs