no, because otherwise we would ask for the same JS file n times, one per service we need to logout that's why I have put it in the outer scope