added error handling to youtube module