you should remove the '-f'  option if you want to get a valid exit code