adds some rules and references