add entry and exit detection for object-update-functions and fix the detecion for task-functions