adds membership api hooks #326