switch for when user-hash present or not