changed command parser's methods to be static