action: add happens_before() function