warn -> error
address Ole's comments