renamed commonInput to input
fixed str concatenation issue in logging