wrapper functions to avoid some deprecation warnings