added main fiducial routines