adding option to limit number of captured requests