improve port api, switch to last KMF