more reliable way to determine the user name