removed parsecmd()