added --noinput flag