added forking of child processes (tasks) in daemon