adding thread safe to gemfile"