add support for reading scripts from a file