the latest dag implementation