fixed some compilation issues, added trigger config files