better log handling
JSON handling in requests