implemented single cmd parsing