splitting logic for youtube access and language functions into two modules