fix bug, num request should be zeroed, better logging