reset state before each request