change gemfile and transaction callback