setup cleanup; added warning and fail status