Rewrite to ruby's hike 2.x API