add functions for freesurfer