adding khmac generator