fixed setting user_groups and libraries