bugs fixed to run dag