refactor logged in provider to scope to host logged on