M frontend