todos
reset pmweb context on error