refactors stats fetching helpers
refactors stats_kw fetching helpers
refactors stats_ref fetching helpers
refactors stats_ua fetching helpers
updates dependencies