add options to examples, fixes bug with expansions