debug for MAC