added lifecycle and tasks