added initial support for external DAG execution

polishing

polishing

polishing