create inputs and outputs for main modules