some preps to get fences working

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
yaor

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
add event management

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>