debugging hacks of rack and restclient requests