updating tcp read/write to not hang
adding pry to gemfile