added user interactivity using cmd module