parameterized: added warning switch