add functions for dealing with JavaNNS files