refactor to use Gemfile