add mac dict search function