updates to methods for writing belns files