add some function to get_mac