add param, alloc KA and EP