implemented event trigger / assign code gen, fixed up logging priority