making import work, replacing deprecated functions