set up the input adapter