trying to solve the registerConnection issue with setup in adapterwrapper