make inputs.mod.* return new instances each time

avoids memory leaks