added framework reset

to be merged to rewrite if accepted.