add legacy warnings