add fields for input and output