removing classes depends on stub version