streamline the load_detector() issues by moving to class-based programming
streamline the load_detector() issues by moving to class-based programming