start of input handling