a script handle files