fixed bus error, removed bogus file-end crud