rewritten gemfile