restrict import function