added getMACaddress functionality