wrong element was being passed to __getCommand__ and __getParser__