script file fixups