conditionalize deprecated functions