add mac local function(just for local)