wip: let's turn the check into a macro