adding unitInput and debug select