implement more features in smcpdialog.sh