begin and end events emitted by stack