blackbox and whitebox macros

/cc @eed3si9n