added better logic for determine dependencies of tasks
processing entity by adding orders, but there is a bug with the process module throwing an exception