implemented ScriptInputFormat and ScriptOutputFormat