rename onBeforeSetMod to beforeSetMod (#72)