made adjustment for non logged in user flags