reading script file header