added ability to log usage stats with cron job