removing the Event class
refactoring; changing API for getDependendiesInSpan