modulo rules
Merge https://github.com/idiomaweb/af