deprecated warning should only be visible in debug mode