phase IV:cookies complete
phase Va:query params, is functional
finish phase V, used recursive solution to build params