added memfnc connect