call normalizeEntityName hook before locals hook