changed API of post-traps to include all arguments of the pre-trap as well