remove old flag
fix exits