Compatibility with mtl 2.1

Thanks to Apollon Oikonomopoulos!!
Updates for 0.22.1