codebook file loading added