added basic request parsing functionality