added a little loop to prevent freesurfer running