split spawn add and remove events into pre and post events