add pre for messages
move inputs and outputs to samples/