mnn.im functions update to use new api