update file core with trigger and hooks