switch example and code dumping from ex-parser