conditional definitions for deprecated classes