added UCN support to binaryfile