working connector- still todo error handling