cleaned up find_eligble_runs and added write to done file