removed exit flag