fixed script file mode