reorganized code a bit, added HttpRequest model