addinf lifecycle for injecting tasks