upated profile2 with opt, added untyped examples