got a single input and switch working