remove unused closure
add dependency to deferred

Control Flow Library based on Promise