implementing headless option for youtube modules