user: use pattern matching to determine if user is local or remote instead of the...