input and output scrips