important improvements prior to compiling triggers