added get captions as a separate script file