update requireclass function