added subscribeSwapClass()