All srces are formated by eclipse
now you do not have to implement doCmd in open and close cmd