on_{state} blocks

WEEW