add script file compatibility