more dag validation and exceptions