helper functions for class loading