added input and output defaulting by config