updated mag to 0.9.x