add a variable to enable/disable the input-in-advance feature