fixed bug where loop would bail on 404. exit is not continue