supports splitting class for mutliple threads..