move "MZ" class to MZLib