added deprecations for Unit module