m2m manager and client