modify gemfile and add config