use fail instead of error
warnings
enable for-loop to count down