add prepend option in general-purpose example