modified to expect headers on .belns and .beleq files