JC: put before and after filter for load and delete session var in log and misc definition.