updated sample with a more realistic brk that works on multi tab