adding in an exit 2 for failures