initial codes for k2 addon