update m4a plugin to math refactor