pre- and post events