updated kpm source