remove the connect function and make it called implicitly by every single function trying to interact with the share