Add "to file" method, "from file" func for scripts