added unique user id extraction