fixed request parsing