simplify chosing which input handler is used