attempt at suppressing deprecation warnings