added loop to monitor php scripts and restart if not running