impersonation, cleanup