refactor parse request control flow