updated speedtest_fun and aggregate