fix bugs!  getheader only works on FITS files