adding user_ids to JSON responses