new functions for handling bdf and elp files