modify some import functions to the new standard