bundler example
refactor to reduce duplication