implements file locking, uses renice on browsers, add a sleep on cron script