adding Input file Replacement again (fixing issue #128)