compatibility with mag 0.9.x