add m7 support