refined the post event stuff