repair state flow
add method to reset the state of the parser
fix fetch raw to interface directly with redis