migrate most program inputs to the "Main" script