fix request parsing