wip: callbacks, rules checking