add rack requests
fix bugs from chapter 6
merge in chapter_6