removes useless from_exit flag