add m2e
fixed case statements