safer import class