use warn module for deprecation warnings