adding coder for encoding and decoding cal file