add wrappers for Input and Output