updated typo and command handling