handle input and comminication