starting on refactor, httpkit, json parsing