rename parser to commandFactory.