refactor pcd-apps/awstats