add exception catch for class loading