split `toplytics.php` in two files