added entity hook function and modifier for starttime