split layout from benchmark script and change to only listen to local events