added connect/3 to the behaviour