finalized LibMJ