move mei lib as common