fixup: _get_id
removes superflous macros
use min_v in events
use min_v in buffer.jl