implement clear on logout for scoped