first version with MKM API support
some more adjustments to MKM API