roll back sanitization, added exit code check