fixed threehour script and added to cron